﻿package hunterCommonlib.net 
{
	
	/**
	 * ...
	 * @author ...
	 */
	public class URLEncode 
	{
		
		public function URLEncode() 
		{
			
		}
		static public function encoder(str:String):String {
			str = str.replace("\\", " ");
			str = unescape(str);
			return (str);
		}
		static public function decode(str:String):String {
			str = escape(str);
			str = str.replace("\\", "%2B");
			str = str.replace("%20", "+");
			return (str);
		}
	}
	
}